package filter

import (
	"fmt"
	"net/http"
	"time"
)

func MetricFilterBuilder(next Filter) Filter {
	return func(w http.ResponseWriter, r *http.Request) {
		start := time.Now().UnixNano()
		next(w, r)
		end := time.Now().UnixNano()
		fmt.Printf("run time [%d] \n", end-start)
	}
}
